/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="TEMPODOENCAS")
public class TempoDoencasProteu implements Serializable{

    @Id
    @Column(name="TED_ST_CODIGO")
    private String tedStCodigo;
    @Column(name="TED_ST_DESCRICAO")
    private String tedStDescricao;

    public String getTedStCodigo() {
        return tedStCodigo;
    }

    public void setTedStCodigo(String tedStCodigo) {
        this.tedStCodigo = tedStCodigo;
    }

    public String getTedStDescricao() {
        return tedStDescricao;
    }

    public void setTedStDescricao(String tedStDescricao) {
        this.tedStDescricao = tedStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final TempoDoencasProteu other = (TempoDoencasProteu) obj;
        if ((this.tedStCodigo == null) ? (other.tedStCodigo != null) : !this.tedStCodigo.equals(other.tedStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 61 * hash + (this.tedStCodigo != null ? this.tedStCodigo.hashCode() : 0);
        return hash;
    }



}
